import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:getx_example/common/my_base_http.dart';
import 'package:getx_example/get_connect/model/my_get_connect_model.dart';

class MyGetConnectService extends MyBaseHttp {
  //获取数据
  Future<MyGetConnectModel> getContent() async {
    Response response = await get('/route/external_link.json');
    if (response.statusCode == 200) {
      debugPrint(response.bodyString);
      return MyGetConnectModel(userId: 1, id: 2, title: 'title', body: 'body');
    } else {
      debugPrint(response.bodyString);
      return MyGetConnectModel(userId: 1, id: 2, title: 'title', body: 'body');
    }
  }
}

class MyGetConnectStateMixinService extends MyBaseHttp {
  //获取数据
  Future<Response> getContent() async {
    Response response = await get('/route/external_link.json');

    return response;
  }
}



class MyGetConnectDioService extends MyBaseHttp {
  //获取数据
  Future<Response> getContent() async {
    Response response = await get('/route/external_link.json');

    return response;
  }
}
